package com.powergisol.gis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * Description:场景
 */
@Data
public class TabScene{

    private Integer id;
    //场景名称
    @NotBlank(message = "场景名称不能为空")
    @Length(min = 1, max = 100, message = "场景名称不能超过100长度")
    private String sceneName;
    //场景描述
    private String sceneDesc;
    //场景url
    private String sceneUrl;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    //场景状态(1有效 0无效)
    private Integer sceneStatus;
    //缩略图base64保存
    private String imgUrl;

    private Integer userId;

    private Integer page=1;

    private Integer limit=10;

    private Integer upSceneId;
}
